<?php

use Illuminate\Routing\Router;


Route::group([
    'prefix' => 'admin/store',
    'namespace' => 'Beerus\\Modules\\Store\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/basic/index', 'AccountController@index');
    $router->get('/basic/index/create', 'AccountController@createAccount');
    $router->get('/basic/index/create/{id}', 'AccountController@createAccount');

    $router->get('/basic/createAuth/{a_id}', 'AccountController@createAuth');
    $router->get('/basic/createOperator/{a_id}', 'AccountController@createOperator');

    $router->post('/basic/account/save', 'AccountController@saveAccount');

    $router->post('/basic/setTest/{id}', 'AccountController@setTest');
    $router->post('/basic/setNormal/{id}', 'AccountController@setNormal');


    $router->get('/basic/index/{id}/edit', 'AccountController@editStore');
    $router->get('/basic/index/{id}/edit/{type}', 'AccountController@editStore');
    $router->post('/basic/oprator/save', 'AccountController@saveOprator');
    $router->post('/basic/auth/save', 'AccountController@saveAuth');
    $router->get('/order/index', 'OrderController@index');
    $router->get('/order/create/{a_id}', 'OrderController@createOrder');
    $router->post('/order/save', 'OrderController@saveOrder');
    $router->get('/order/exportData', 'OrderController@exportData');


    $router->get('/check/index', 'CheckController@index');
    $router->get('/check/create/{id}', 'CheckController@createCheck');
    $router->post('/check/save', 'CheckController@saveCheck');
    $router->post('/check/checkSucc/{id}', 'CheckController@checkSucc');


    $router->get('/virtualphone/list', 'VirtualPhoneController@index');
    $router->get('/virtualphone/uselist', 'VirtualPhoneUseController@index');
    $router->post('/virtualphone/unbind/{id}', 'VirtualPhoneController@unbind');


    // $router->get('/order/create/{id}', 'OrderController@createOrder');

});
